import suit.ui.Application;
import suit.ui.Box;
import suit.ui.Entry;
import suit.ui.Label;
import suit.ui.Screen;
import suit.ui.themes.DefaultTheme;

public class WrapTester extends Application {

	Entry entry = new Entry();
	Label label = new Label();

	public WrapTester() {
		Screen main = new Screen(new DefaultTheme());
		Box box = new Box(Box.Vert, true, 5);
		box.setBorderWidth(5);

		label.setAlign(Label.TOP | Label.LEFT);

		box.add(entry);
		box.add(label);
		main.add(box);
		setScreen(main);

		entry.connect(new Entry.Changed() {

			public void onChanged(Entry source) {
				label.setText(source.getText());

			}
		});

	}

}
